// 导入定义验证规则的包
const Joi = require("joi");
const user_name = Joi.string().required();
const base_name = Joi.string().required();
const phone = Joi.string().required().pattern(/^1[3456789]\d{9}$/);
const user_code = Joi.string().required();

// 校验修改队伍昵称的处理模块
exports.reg_index_schema = {
  body: {
    user_name,
    base_name,
    phone,
    user_code
  },
};
